//
//  ViewController.m
//  NetWorking
//
//  Created by tc on 2018/5/8.
//  Copyright © 2018年 tc. All rights reserved.
//

#import "ViewController.h"
#import "BaseViewController.h"
#import "TCNetwork.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor whiteColor];
    [TCNetwork setBaseURL:@"https://uat.feikongbao.com/api/"];
    

}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    NSDictionary *dict  = @{
                            @"pageSize" : @20,
                            @"status" : @0,
                            @"page" : @1,
                            };
    
    [TCNetwork POSTWithURL:@"business/newflowbusinessList" parameters:dict cachePolicy:TCCachePolicyCacheThenNetwork callback:^(id responseObject, NSError *error) {
        
        NSLog(@"=====  %@",responseObject);
        
    }];
    
    BaseViewController *vc =  [BaseViewController new];
    vc.view.backgroundColor = [UIColor whiteColor];
    [self.navigationController pushViewController:vc animated:YES];
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
